package org.lboot.rbac.module.user.map;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.lboot.jpa.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "sys_user_role")
@ApiModel(value = "用户角色映射关系实体",description = "用户实体信息管理")
public class SysUserRole extends BaseEntity implements Serializable {

    @ApiModelProperty("用户ID")
    @Column(name = "user_id")
    Long userId;

    @ApiModelProperty("角色ID")
    @Column(name = "role_id")
    Long roleId;

}
